import request from '@/utils/request'

// 查询标准库列表
export function getbaseList (query) {
  return request({
    url: '/function/knowledgeData/standard/base/list',
    method: 'get',
    params: query
  })
}
// 查询标准库详情
export function getbasechildren (query) {
  return request({
    url: '/function/knowledgeData/standard/base/' + query,
    method: 'get',
  })
}
// 新增标准库
export function createdbase (data) {
  return request({
    url: '/function/knowledgeData/standard/base',
    method: 'post',
    data: data
  })
}
// 修改标准库
export function updatedbase (data) {
  return request({
    url: '/function/knowledgeData/standard/base',
    method: 'put',
    data: data
  })
}
// 删除标准库
export function deletedbase (data) {
  return request({
    url: '/function/knowledgeData/standard/base/' + data,
    method: 'delete'
  })
}